package org.red_cross_service.utils;

import org.apache.commons.codec.digest.DigestUtils;

public class DigestUtil extends DigestUtils {

    private final static String SALT = "RPC-salt";

    /**
     * md5加盐加密
     *
     * @param password 密码
     * @return
     */
    public static String encryptPassword(String password) {
        return DigestUtil.md5Hex(SALT + password);
    }
}
